const initState = {
  movieList: [],
}
export default function movieReducer(prvState = initState, action) {
  const { type, data } = action

  switch (type) {
    case "movie/setMovie":
      prvState.movieList = data
  }

  return prvState
}
